<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>S110_nRF51822/Include/ble/ble_advdata.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>


<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF51822 BLE SDK
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('ble__advdata_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">S110_nRF51822/Include/ble/ble_advdata.h</div>  </div>
</div>
<div class="contents">
<a href="ble__advdata_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.</span>
<a name="l00002"></a>00002 <span class="comment"> *</span>
<a name="l00003"></a>00003 <span class="comment"> * The information contained herein is property of Nordic Semiconductor ASA.</span>
<a name="l00004"></a>00004 <span class="comment"> * Terms and conditions of usage are described in detail in NORDIC</span>
<a name="l00005"></a>00005 <span class="comment"> * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Licensees are granted free, non-transferable use of the information. NO</span>
<a name="l00008"></a>00008 <span class="comment"> * WARRANTY of ANY KIND is provided. This heading must NOT be removed from</span>
<a name="l00009"></a>00009 <span class="comment"> * the file.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * $LastChangedRevision$</span>
<a name="l00012"></a>00012 <span class="comment"> */</span>
<a name="l00013"></a>00013 
<a name="l00023"></a>00023 <span class="preprocessor">#ifndef BLE_ADVDATA_H__</span>
<a name="l00024"></a>00024 <span class="preprocessor"></span><span class="preprocessor">#define BLE_ADVDATA_H__</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;stdint.h&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;ble.h&quot;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#include &quot;<a class="code" href="ble__sdk__util_8h.html">ble_sdk_util.h</a>&quot;</span>
<a name="l00031"></a>00031 
<a name="l00034"></a><a class="code" href="group__ble__sdk__lib__advdata.html#ga03c5ccf232779001be9786021b1a563b">00034</a> <span class="keyword">typedef</span> <span class="keyword">enum</span>
<a name="l00035"></a>00035 {
<a name="l00036"></a><a class="code" href="group__ble__sdk__lib__advdata.html#gga03c5ccf232779001be9786021b1a563ba6e99a7c49e28bdae76c43edce53516f7">00036</a>     <a class="code" href="group__ble__sdk__lib__advdata.html#gga03c5ccf232779001be9786021b1a563ba6e99a7c49e28bdae76c43edce53516f7">BLE_ADVDATA_NO_NAME</a>,                                              
<a name="l00037"></a><a class="code" href="group__ble__sdk__lib__advdata.html#gga03c5ccf232779001be9786021b1a563ba28f0d09500400f6210b789bdfe89a0e0">00037</a>     <a class="code" href="group__ble__sdk__lib__advdata.html#gga03c5ccf232779001be9786021b1a563ba28f0d09500400f6210b789bdfe89a0e0">BLE_ADVDATA_SHORT_NAME</a>,                                           
<a name="l00038"></a><a class="code" href="group__ble__sdk__lib__advdata.html#gga03c5ccf232779001be9786021b1a563ba63a26e22b9d6a0899edac755d0e2f488">00038</a>     <a class="code" href="group__ble__sdk__lib__advdata.html#gga03c5ccf232779001be9786021b1a563ba63a26e22b9d6a0899edac755d0e2f488">BLE_ADVDATA_FULL_NAME</a>                                             
<a name="l00039"></a>00039 } <a class="code" href="group__ble__sdk__lib__advdata.html#ga03c5ccf232779001be9786021b1a563b" title="Advertising data name type. This contains the options available for the device name inside the advert...">ble_advdata_name_type_t</a>;
<a name="l00040"></a>00040 
<a name="l00042"></a>00042 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00043"></a>00043 {
<a name="l00044"></a><a class="code" href="structble__advdata__uuid__list__t.html#a1cecc52d144b939f33a67c1d68363e99">00044</a>     uint16_t                     <a class="code" href="structble__advdata__uuid__list__t.html#a1cecc52d144b939f33a67c1d68363e99">uuid_cnt</a>;                            
<a name="l00045"></a><a class="code" href="structble__advdata__uuid__list__t.html#a100265d2ed10e66a76e53cba205dc8a3">00045</a>     <a class="code" href="structble__uuid__t.html" title="Bluetooth Low Energy UUID type, encapsulates both 16-bit and 128-bit UUIDs.">ble_uuid_t</a> *                 <a class="code" href="structble__advdata__uuid__list__t.html#a100265d2ed10e66a76e53cba205dc8a3">p_uuids</a>;                             
<a name="l00046"></a>00046 } <a class="code" href="structble__advdata__uuid__list__t.html" title="UUID list type.">ble_advdata_uuid_list_t</a>;
<a name="l00047"></a>00047 
<a name="l00049"></a>00049 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00050"></a>00050 {
<a name="l00051"></a><a class="code" href="structble__advdata__conn__int__t.html#ac927a642ee2203f875fcce1eabb5fa64">00051</a>     uint16_t                     <a class="code" href="structble__advdata__conn__int__t.html#ac927a642ee2203f875fcce1eabb5fa64">min_conn_interval</a>;                   
<a name="l00052"></a><a class="code" href="structble__advdata__conn__int__t.html#a0aec1884f340406a5194b772da017d7b">00052</a>     uint16_t                     <a class="code" href="structble__advdata__conn__int__t.html#a0aec1884f340406a5194b772da017d7b">max_conn_interval</a>;                   
<a name="l00053"></a>00053 } <a class="code" href="structble__advdata__conn__int__t.html" title="Connection interval range structure.">ble_advdata_conn_int_t</a>;
<a name="l00054"></a>00054 
<a name="l00056"></a>00056 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00057"></a>00057 {
<a name="l00058"></a><a class="code" href="structble__advdata__manuf__data__t.html#a183f3142ec5095963ab0ddb58d90a49c">00058</a>     uint16_t                     <a class="code" href="structble__advdata__manuf__data__t.html#a183f3142ec5095963ab0ddb58d90a49c">company_identifier</a>;                  
<a name="l00059"></a><a class="code" href="structble__advdata__manuf__data__t.html#a52ebf147190879b03b057d7b80ec185d">00059</a>     <a class="code" href="structuint8__array__t.html" title="Byte array type.">uint8_array_t</a>                <a class="code" href="structble__advdata__manuf__data__t.html#a52ebf147190879b03b057d7b80ec185d">data</a>;                                
<a name="l00060"></a>00060 } <a class="code" href="structble__advdata__manuf__data__t.html" title="Manufacturer specific data structure.">ble_advdata_manuf_data_t</a>;
<a name="l00061"></a>00061 
<a name="l00063"></a>00063 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00064"></a>00064 {
<a name="l00065"></a><a class="code" href="structble__advdata__service__data__t.html#a9b606b4ee380e181121922ff85a544b1">00065</a>     uint16_t                     <a class="code" href="structble__advdata__service__data__t.html#a9b606b4ee380e181121922ff85a544b1">service_uuid</a>;                        
<a name="l00066"></a><a class="code" href="structble__advdata__service__data__t.html#a52ebf147190879b03b057d7b80ec185d">00066</a>     <a class="code" href="structuint8__array__t.html" title="Byte array type.">uint8_array_t</a>                <a class="code" href="structble__advdata__service__data__t.html#a52ebf147190879b03b057d7b80ec185d">data</a>;                                
<a name="l00067"></a>00067 } <a class="code" href="structble__advdata__service__data__t.html" title="Service data structure.">ble_advdata_service_data_t</a>;
<a name="l00068"></a>00068 
<a name="l00071"></a>00071 <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00072"></a>00072 {
<a name="l00073"></a><a class="code" href="structble__advdata__t.html#a045ec5915c094e107ac24d185b83fa49">00073</a>     <a class="code" href="group__ble__sdk__lib__advdata.html#ga03c5ccf232779001be9786021b1a563b" title="Advertising data name type. This contains the options available for the device name inside the advert...">ble_advdata_name_type_t</a>      <a class="code" href="structble__advdata__t.html#a045ec5915c094e107ac24d185b83fa49">name_type</a>;                           
<a name="l00074"></a><a class="code" href="structble__advdata__t.html#a93a9e972f6ad2a764fd0c3c3f259031c">00074</a>     uint8_t                      <a class="code" href="structble__advdata__t.html#a93a9e972f6ad2a764fd0c3c3f259031c">short_name_len</a>;                      
<a name="l00075"></a><a class="code" href="structble__advdata__t.html#aff2bb3e4016b9a7b6cbcdd6e98feb719">00075</a>     <span class="keywordtype">bool</span>                         <a class="code" href="structble__advdata__t.html#aff2bb3e4016b9a7b6cbcdd6e98feb719">include_appearance</a>;                  
<a name="l00076"></a><a class="code" href="structble__advdata__t.html#a3ad6b2c5a983e0f2676c85c546ed47ae">00076</a>     <a class="code" href="structuint8__array__t.html" title="Byte array type.">uint8_array_t</a>                <a class="code" href="structble__advdata__t.html#a3ad6b2c5a983e0f2676c85c546ed47ae">flags</a>;                               
<a name="l00077"></a><a class="code" href="structble__advdata__t.html#abf6287e8f903a4896561c23c6b2581ef">00077</a>     int8_t *                     <a class="code" href="structble__advdata__t.html#abf6287e8f903a4896561c23c6b2581ef">p_tx_power_level</a>;                    
<a name="l00078"></a><a class="code" href="structble__advdata__t.html#aa3565098810fa07656d4f89eb202d5c5">00078</a>     <a class="code" href="structble__advdata__uuid__list__t.html" title="UUID list type.">ble_advdata_uuid_list_t</a>      <a class="code" href="structble__advdata__t.html#aa3565098810fa07656d4f89eb202d5c5">uuids_more_available</a>;                
<a name="l00079"></a><a class="code" href="structble__advdata__t.html#af848e0d7e7334a53498e1e6c592fed90">00079</a>     <a class="code" href="structble__advdata__uuid__list__t.html" title="UUID list type.">ble_advdata_uuid_list_t</a>      <a class="code" href="structble__advdata__t.html#af848e0d7e7334a53498e1e6c592fed90">uuids_complete</a>;                      
<a name="l00080"></a><a class="code" href="structble__advdata__t.html#ad0eb340db1e6871259649d5b5d6beb91">00080</a>     <a class="code" href="structble__advdata__uuid__list__t.html" title="UUID list type.">ble_advdata_uuid_list_t</a>      <a class="code" href="structble__advdata__t.html#ad0eb340db1e6871259649d5b5d6beb91">uuids_solicited</a>;                     
<a name="l00081"></a><a class="code" href="structble__advdata__t.html#aeaab56eae9e63162d5ff2c20eea5e2fa">00081</a>     <a class="code" href="structble__advdata__conn__int__t.html" title="Connection interval range structure.">ble_advdata_conn_int_t</a> *     <a class="code" href="structble__advdata__t.html#aeaab56eae9e63162d5ff2c20eea5e2fa">p_slave_conn_int</a>;                    
<a name="l00082"></a><a class="code" href="structble__advdata__t.html#ac190b7d26572836c7a381ef0ad0343aa">00082</a>     <a class="code" href="structble__advdata__manuf__data__t.html" title="Manufacturer specific data structure.">ble_advdata_manuf_data_t</a> *   <a class="code" href="structble__advdata__t.html#ac190b7d26572836c7a381ef0ad0343aa">p_manuf_specific_data</a>;               
<a name="l00083"></a><a class="code" href="structble__advdata__t.html#a9a43a30166d28f503400eb94a1b3f90c">00083</a>     <a class="code" href="structble__advdata__service__data__t.html" title="Service data structure.">ble_advdata_service_data_t</a> * <a class="code" href="structble__advdata__t.html#a9a43a30166d28f503400eb94a1b3f90c">p_service_data_array</a>;                
<a name="l00084"></a><a class="code" href="structble__advdata__t.html#a6b39f231af1d2402fa0bbd8135d4be1c">00084</a>     uint8_t                      <a class="code" href="structble__advdata__t.html#a6b39f231af1d2402fa0bbd8135d4be1c">service_data_count</a>;                  
<a name="l00085"></a>00085 } <a class="code" href="structble__advdata__t.html" title="Advertising data structure. This contains all options and data needed for encoding and setting the ad...">ble_advdata_t</a>;
<a name="l00086"></a>00086 
<a name="l00099"></a>00099 uint32_t <a class="code" href="group__ble__sdk__lib__advdata.html#ga180ff4057a0763688c734e98ab8d976b" title="Encodes and sets the advertising data and/or scan response data.">ble_advdata_set</a>(<span class="keyword">const</span> <a class="code" href="structble__advdata__t.html" title="Advertising data structure. This contains all options and data needed for encoding and setting the ad...">ble_advdata_t</a> * p_advdata, <span class="keyword">const</span> <a class="code" href="structble__advdata__t.html" title="Advertising data structure. This contains all options and data needed for encoding and setting the ad...">ble_advdata_t</a> * p_srdata);
<a name="l00100"></a>00100 
<a name="l00101"></a>00101 <span class="preprocessor">#endif // BLE_ADVDATA_H__</span>
<a name="l00102"></a>00102 <span class="preprocessor"></span>
</pre></div></div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="ble__advdata_8h.html">ble_advdata.h</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
